Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Priorities #48

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Priorities #48

wants to merge 10 commits into from

Conversation

KenMbuthia
Copy link

This is a humble contribution for your consideration:

Using priorities queue from queue to give higher priorities to different events - with order events having the highest priority (i.e the lowest value) and tick events having the least priority in the queue (i.e highest value). The signal events having the same value for buy and sell however being selected in the queue by the time property of each event thus the need to introduce the equality operator in the base event class.

Hopefully this will be helpful and more modifications will be fine to make the priority queue even better. Just my humble contribution to this great project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant